<layout name="Iflayout"/>
<div class="xyh-content">

    <div class="row">
        <div class="col-lg-12">
            <h3 class="page-header"><em class="glyphicon glyphicon-cloud-upload"></em>
                首页幻灯-广告列表
            </h3>
        </div>

    </div>

    <div class="row margin-botton">
        <div class="col-sm-6 column">
            <div class="btn-group btn-group-md">
                <button class="btn btn-default" type="button" onclick="goUrl('/xyhai.php?s=/Abc/index')"><em class="glyphicon glyphicon-chevron-left"></em> 返回</button>
                <button class="btn btn-primary" type="button" onclick="goUrl('')"><em class="glyphicon glyphicon-plus-sign"></em> 添加广告</button>
                <button class="btn btn-default" type="button" onclick="doGoSubmit('/xyhai.php?s=/Abc/sort/aid/1','form_do')"><em class="glyphicon glyphicon-th-list"></em> 更新排序</button>

            </div>
        </div>
    </div>

    <div class="row">
        <div class="col-lg-12">
            <form action="" method="post" id="form_do" name="form_do">
                <div class="table-responsive">
                    <table class="table table-hover xyh-table-bordered-out">
                        <thead>
                        <tr class="active">
                            <th>编号</th>
                            <th>广告标题</th>
                            <th>开始时间</th>
                            <th>结束时间</th>
                            <th>排序</th>
                            <th>状态</th>
                            <th class="text-right">操作</th>
                        </tr>
                        </thead>
                        <tbody>

                        <foreach name="list" item="arr">
                        <tr>
                            <td>{$arr['id']}</td>
                            <td>{$arr['title']}</td>
                            <td>{$arr['starttime']|date='Y-m-d H:i:s',###}</td>
                            <td>{$arr['endtime']|date='Y-m-d H:i:s',###}</td>
                            <td><input type="text" name="{$arr['sort']}" value="1" id="sortlist" size="5" class="xyh-form-control"></td>
                            <td>
                                <span class="label label-info">启用</span>
                            </td>
                            <td class="text-right">
                                <a href="/xyhai.php?s=/Abc/editDetail/id/1" class="label label-success">编辑</a>
                                <a href="javascript:;" onclick="toConfirm('/xyhai.php?s=/Abc/delDetail/id/1/aid/1', '确实要删除吗？')" class="label label-danger">删除</a>
                            </td>
                        </tr>
                        </foreach>

                       </tbody>
                    </table>
                </div>
            </form>
            <div class="row clearfix">
                <div class="col-md-12 column">
                    <div class="xyh-page">
                        <div><span class="rows">共{$num}条记录</span></div>
                        <div>{$page}</div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>